package com.springboot.astra.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.springboot.astra.bean.Postmain;

import java.util.List;

public interface PostmainService {
    Postmain getOneById(Integer id);
    IPage<Postmain> getAll(Page<Postmain> page,String query);
    IPage<Postmain> getAllIsPostReport(Page<Postmain> page,String query);
    IPage<Postmain> getAllForUser(Page<Postmain> page,String query);
    List<Postmain> getAllByUserId(Integer id);
    IPage<Postmain> getAllByThemeId(Page<Postmain> page,String query);
    void insertPostmain(Postmain postmain);
    void updateOneById(Postmain postmain);
    void updatePostReport(Integer postMainId);
    void deleteOneById(Postmain postmain);
}
